/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import jade.core.AID;
import java.util.ArrayList;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

/**
 *
 * @author CUNEYT
 *
 * This class is a specialised ListModel used to hold AID objects in the JList.
 *
 */
public class SMListModel implements ListModel {

    private ArrayList<AID> collection;

    public SMListModel(ArrayList<AID> coll) {
        this.collection = coll;
    }

    public int getSize() {
        return collection.size();
    }

    public Object getElementAt(int index) {
        return collection.get(index);
    }

    public void addListDataListener(ListDataListener l) {
    }

    public void removeListDataListener(ListDataListener l) {
    }
}
